package edu.csumb.itcd.teammario;

import java.awt.Point;

public class ShotgunTower extends Tower {

	private static int damage = 10;
	private static int rateOfFire = 20;
	
	public ShotgunTower(Point towerLocation, ShotGunWeapon newWeapon)
	{
		super(towerLocation, newWeapon);
	}
	
	public ShotGunWeapon getWeapon() {
		return (ShotGunWeapon)weapon;
	}
	
	public static void setDamage(int damage)
	{
		ShotgunTower.damage = damage;
	}
	
	public static int getDamage()
	{
		return damage;
	}
	
	public static void setRateOfFire(int rateOfFire)
	{
		ShotgunTower.rateOfFire = rateOfFire;
	}
	
	public static int getRateOfFire()
	{
		return rateOfFire;
	}
	
	public void updateTower()
	{
		weapon = new ShotGunWeapon(damage, rateOfFire);
	}
}
